package org.example.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.example.common.Token;
import org.example.entity.User;
import org.example.entity.vo.LoginVo;

import javax.security.auth.login.AccountNotFoundException;
import javax.security.auth.login.LoginException;

public interface LoginService extends IService<User> {
    Token login(LoginVo loginVo) throws LoginException;

    void logout(String token);
}
